<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<!--
   /******************************************************************************
     Copyright:: 2020- IBM, Inc

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  *****************************************************************************/
-->

<html lang="en">

<head>
	<title>RPT Test Suite</title>
</head>

<body>

<a href="#navskip">skip to main content</a>


<h2>Test case: Input-hasLabelBadPlacement.html</h2>



<!-- ################################################################### -->


<h3>Input type Tests</h3>


<ul>
	<li>Test #1 - Associated label tag after input element - Input type="text"</li>
	<li>Test #2 - Associated label tag after input element - Input type="file"</li>
	<li>Test #3 - Associated label tag after input element - Input type="password"</li>
	<li>Test #4 - Associated label tag after select element - Select"</li>
	<li>Test #5 - Associated label tag after textarea element - Textarea"</li>
</ul>

<form action="..." method="post">
	<fieldset>
		<legend>Legend text: Personal Information</legend>
		<p>Fieldset text: Please enter your personal information.</p>

		<input type="text" name="lastname" id="ln1" value="enter last name" title="enter last name">
		<label for="ln1">Last Name</label>

		<button type="submit">Submit</button>
	</fieldset>
</form>

<form action="..." method="post">
	<fieldset>
		<legend>Legend text: File Information</legend>
		<p>Fieldset text: Please enter the file information.</p>

		<input type="file" name="lastfilename" id="lfn2" value="enter last file name" title="Enter last filename">
		<label for="lfn2">Last File Name</label>

		<button type="submit">Submit</button>
	</fieldset>
</form>

<form action="..." method="post">
	<fieldset>
		<legend>Legend text: Personal Information</legend>
		<p>Fieldset text: Please enter your personal information.</p>

		<input type="password" name="lastpassword" id="lpw3" value="enter last password" title="enter last password">
		<label for="lpw3">Password</label>

		<button type="submit">Submit</button>
	</fieldset>
</form>

<form action="..." method="post">
	<fieldset>
		<legend>Legend text: Automobiles</legend>
		<p>Fieldset text: Please select the auto of your choice.</p>

		<select name="autos" id="cars1" title="autos">
			<optgroup label="American cars">
				<option value="Ford">Ford</option>
				<option value="GM">GM</option>
				<option value="Chrysler">Chrysler</option>
			</optgroup>

			<optgroup label="European cars">
				<option value="Jaguar">Jaguar</option>
				<option value="Volvo">Volvo</option>
				<option value="Saab">Saab</option>
			</optgroup>
		</select>

		<label for="cars1">Automobiles </label>

		<button type="submit">Submit</button>
	</fieldset>
</form>

<form action="..." method="post">
	<fieldset>
		<legend>Legend text: Automobiles</legend>
		<p>Fieldset text: Please type the auto of your choice.</p>

		<textarea rows="2" cols="50" name="autos" id="cars2" title="autos">		Ford, GM, Chrysler
		</textarea>

		<label for="cars2">List of Automobiles </label>

		<button type="submit">Submit</button>
	</fieldset>
</form>


<a name="navskip">End</a>


<label for="me1">
<span>MyLabel2:</span>
<input type="text" id="me1">
</label>

<label for="me2">
<input type="text" id="me2">
 <span>MyLabel2:</span>
</label>


<script type="text/javascript">
//<![CDATA[
  if (typeof(OpenAjax) == 'undefined') OpenAjax = {}
  if (typeof(OpenAjax.a11y) == 'undefined') OpenAjax.a11y = {}
  OpenAjax.a11y.ruleCoverage = [
    {
      ruleId: "1017",
      passedXpaths: [
      ],
      failedXpaths: [
        "/html/body/form[1]/fieldset/input",
        "/html/body/form[2]/fieldset/input",
        "/html/body/form[3]/fieldset/input",
        "/html/body/form[4]/fieldset/select",
        "/html/body/form[5]/fieldset/textarea",
		"/html/body/label[2]/input"
      ]
    }
  ];
//]]>
</script></body>

</html>
